<template>
  <div id="app">
    <h1 v-upper="msg" style="color:rgb(9, 241, 40);padding-botton:18px"></h1>
   <Header />
    <!-- 路由组件出口的地方 -->
   <router-view></router-view>
   <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'

export default {
  name: 'App',
  components: {
    Header,
    Footer
  },
  data() {
    return {
      msg: "加油，卷起来"
    }
  },
  mounted(){
    //派发一个action||获取商品分类的三级分类列表数据
     this.$store.dispatch("getCategoryList");

  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 30px;
  /* color: rgb(9, 241, 40); */
  
}
</style>
